<template>
  <div>
    <!-- 分页 -->
    <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage"
      :page-size="pageSize" layout="total, prev, pager, next, jumper" :total="total">
    </el-pagination>
  </div>
</template>

<script>
export default {
  props: {
    total: {
      type: Number,
      default: 100
    },
    pageSize: {
      type: Number,
      default: 10
    }
  },
  methods: {
    handleSizeChange(val) {
<<<<<<< HEAD
      console.log(`每页 ${val} 条`);
    },
    handleCurrentChange(val) {
      console.log(`当前页: ${val}`);
=======
      //console.log(`每页 ${val} 条`);
    },
    handleCurrentChange(val) {
      //console.log(`当前页: ${val}`);
>>>>>>> e558facf022688ce3d835b65714b1b14b7cb08fa
      this.$emit('currentChange', val)
    }
  },
  data() {
    return {
      currentPage: 1,
    };
  }
}
</script> 

<style scoped></style>
